package com.xjh.him.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xjh.him.domain.UserDO;
import com.xjh.him.dto.user.UserLoginDTO;
import org.springframework.stereotype.Repository;


@Repository
public interface UserMapper extends BaseMapper<UserDO> {
    /**
     * 根据手机号密码查询用户
     * @param loginDTO
     * @return
     */
    UserDO selectByLogin(UserLoginDTO loginDTO);

    /**
     * 更新用户基础信息
     * @param userDO
     * @return
     */
    Integer updateInfo(UserDO userDO);
}
